<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    any方法：只要有一个Promise的状态为fulfilled，整体结果就是filfilled
            如果所有的Promise都是rejected，那么结果就是rejected
    <script>
        let p1 = new Promise((resolve,reject)=>{
            resolve('ok')
        })
        let p2 = new Promise((resolve,reject)=>{
            resolve('okk')
        })
        let p3 = new Promise((resolve,reject)=>{
            resolve('okkk')
        })
        let reslut = Promise.any([p3,p1,p2])
        console.log(reslut);
        
    </script>
</body>
</html>